Skip to content

GH-22681: avoid truncation on null bytes in Reflection*::__toString()#22685

Open
DanielEScherzer wants to merge 3 commits into
php:PHP-8.4from
DanielEScherzer:reflection-null-bytes-r2
Open

GH-22681: avoid truncation on null bytes in Reflection*::__toString()#22685
DanielEScherzer wants to merge 3 commits into
php:PHP-8.4from
DanielEScherzer:reflection-null-bytes-r2

Conversation

@DanielEScherzer

Copy link
Copy Markdown
Member

Fixes #22681

So that when the outputs are fixed the changes can be confirmed in tests
…ng()`

Given that there is not an unchecked version of `smart_str_append_printf()`, to
avoid compiler warnings from using `%S` to format `zend_string` pointers (which
the smart string printing machinery supports, but printf does not support) in a
few places the format specifier is declared in a variable rather than being
specified directly in the `smart_str_append_printf()` call.
@DanielEScherzer

Copy link
Copy Markdown
Member Author

@Girgias let me know if it would be more helpful to split the fixes into separate commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant